import axios from '@/utils/http';

// 获取用户信息接口
export const getUserInfo = () => {
  return axios({
    url: '/v1/webapi/user/currentUserInfo',
    method: 'get'
  });
};

// logout 退出登录接口
type logoutData = {
  url: string;
};
export const logout = (logoutData: logoutData) => {
  return axios({
    url: '/v1/webapi/cas/client/logout',
    method: 'post',
    data: {
      url: logoutData.url
    }
  });
};
